﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EDM
{
    class Authoritytranslator
    {

        //To Translate AuthorityDataEntity to AuthorityBusinessEntity
        public static BLL.Authority TranslatetoAuthorityBE(EDM.Authority authorityDE)
        {
            BLL.Authority authorityBE = new BLL.Authority();
            authorityBE.AuthorityId = authorityDE.AuthorityId;
            authorityBE.AuthorityName = authorityDE.AuthorityName;
            return authorityBE;
        }

        //To Translate AuthorityBusinessEntity to AuthorityDataEntity
        public static EDM.Authority TranslatetoAuthorityDE(BLL.Authority authorityBE)
        {
            EDM.Authority authorityDE = new EDM.Authority();
            authorityDE.AuthorityId = authorityBE.AuthorityId;
            authorityDE.AuthorityName = authorityBE.AuthorityName;
            return authorityDE;
        }
    }
}
